import {Interceptor} from "../../../src/core/Interceptor";
import {EasyACtx} from "../../../src/core/EasyACtx";
import {_} from "../../../src/util/UtilTs";

export class ReturnParamInterceptor extends Interceptor{

    after(ctx: EasyACtx) {

        for(const key in ctx.params){
            ctx.mm[key] = ctx.params[key];
        }
        ctx.next();
    }

}
